<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>

<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Spring 4 MVC - JSP - 表单标签</title>
</head>
<body>
	<form:form action="/tag/post" method="post" modelAttribute="user">  
		普通submit提交表单: <form:button>提交</form:button>
		<hr />
		按钮不可用: <form:button disabled="true">提交</form:button>
		<hr />
		普通submit提交表单: <form:button id="submit" name="ok">提交</form:button>
		<hr />
		普通submit提交表单: <form:button id="submit">提交</form:button>
		<hr />
	</form:form>

	<form:form action="/tag/post" method="post" modelAttribute="user">
		<fieldset>
			<legend>input</legend>
			普通:
			<form:input path="id" />
			<hr />
			默认值:
			<form:input path="id" value="1" />
			<hr />
			class属性:
			<form:input path="id" cssClass="inputs" />
			<hr />
			样式设置:
			<form:input path="id" cssStyle="color: #f00;" value="1" />
			<hr />
			只读:
			<form:input path="id" value="1" readonly="true" />
			<hr />
			只读:
			<form:input path="id" value="1" disabled="true" />
			<hr />
		</fieldset>
	</form:form>
</body>
</html>